<div id="divPopUpProduct">
    <fieldset>
        <legend>Search</legend>
        <span class="caption">You can type a part of words</span>
        <?php echo $ajax->form('Product', 'post', array('update' => 'divPopUpProductPaginate', 'indicator' => 'indicator', 'url' => array('action' => 'popup_paginate', $customer_id, $site_id))); ?>
        <table>
            <tr>
                <td><?php echo $form->label('Product.part_no', 'Vendor Part no.'); ?></td>
                <td><?php echo $form->text('Product.part_no'); ?></td>
                <td width="120px"><?php echo $form->label('Product.category_id', 'Category'); ?></td>
                <td><?php echo $form->select('Product.category_id', $categories, null); ?></td>
            </tr>
            <tr>
                <td width="120"><?php echo $form->label('CustProductSite.stock_code'); ?></td>
                <td><?php echo $form->text('CustProductSite.stock_code'); ?></td>
                <td><?php echo $form->label('Product.brand_id', 'Brand'); ?></td>
                <td>
                    <?php echo $form->select('Product.brand_id', $brands); ?>
                </td>
            </tr>
            <tr>
                <td class="top"><?php echo $form->label('Product.text', 'Description'); ?></td>
                <td><?php echo $form->text('Product.text', array('cols' => 50, 'rows' => 3)); ?></td>
                <td><?php echo $form->label('Product.model'); ?></td>
                <td>
                    <?php echo $form->text('Product.model'); ?>
                    <?php echo $form->submit('icon/search.png', array('id' => 'submit', 'style' => 'display: inline;')); ?>
                </td>
            </tr>
        </table>
        <?php echo $form->end(); ?>
    </fieldset>
    <div id="divPopUpProductPaginate">
        <?php echo $this->requestAction('supplier_customer_inventories/popup_paginate/' . $customer_id . '/' . $site_id . '/' . $supplier_id, array('return')); ?>
    </div>
</div>